package server

import "net"

type UserInfo struct {
	Name    string
	Passwd  string
	Friends map[string]struct{}
	Groups  map[string]struct{}

	Conn net.Conn
}

func NewUserInfo(name string, passwd string) *UserInfo {
	return &UserInfo{
		Name:    name,
		Passwd:  passwd,
		Friends: make(map[string]struct{}),
		Groups:  make(map[string]struct{}),
		Conn:    nil,
	}
}
